-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the mila init
and mila code
commands on windows & WSL
#65
Conversation
mila init
command on windowsmila init
command on windows
61d608c
to
ffd3f03
Compare
94267fe
to
d947e15
Compare
mila init
command on windowsmila init
and mila code
command on windows & WSL
mila init
and mila code
command on windows & WSLmila init
and mila code
commands on windows & WSL
Signed-off-by: Fabrice Normandin <[email protected]>
Signed-off-by: Fabrice Normandin <[email protected]>
Signed-off-by: Fabrice Normandin <[email protected]>
Signed-off-by: Fabrice Normandin <[email protected]>
Fixes mila-iqia#63 Signed-off-by: Fabrice Normandin <[email protected]>
Signed-off-by: Fabrice Normandin <[email protected]>
Signed-off-by: Fabrice Normandin <[email protected]>
Signed-off-by: Fabrice <[email protected]>
Signed-off-by: Fabrice Normandin <[email protected]>
Signed-off-by: Fabrice Normandin <[email protected]>
Signed-off-by: Fabrice Normandin <[email protected]>
Signed-off-by: Fabrice Normandin <[email protected]>
Signed-off-by: Fabrice <[email protected]>
Signed-off-by: Fabrice <[email protected]>
Signed-off-by: Fabrice Normandin <[email protected]>
Signed-off-by: Fabrice Normandin <[email protected]>
022386d
to
477997d
Compare
Hmm I just realized there's one last thing that might need fixing:
|
Signed-off-by: Fabrice Normandin <[email protected]>
Signed-off-by: Fabrice Normandin <[email protected]>
Signed-off-by: Fabrice Normandin <[email protected]>
Signed-off-by: Fabrice Normandin <[email protected]>
Signed-off-by: Fabrice Normandin <[email protected]>
Ready for review again @breuleux |
Signed-off-by: Fabrice Normandin <[email protected]>
Signed-off-by: Fabrice Normandin <[email protected]>
Signed-off-by: Fabrice Normandin <[email protected]>
tests/cli/test_init_command/test_setup_windows_ssh_config_from_wsl_reject_.md
Outdated
Show resolved
Hide resolved
Signed-off-by: Fabrice Normandin <[email protected]>
@@ -206,6 +261,7 @@ def _add_ssh_entry( | |||
ssh_config: SSHConfig, | |||
host: str, | |||
Host: str | None = None, | |||
*, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the *
is doing? Is it to grab all extra args? Should an exception be thrown instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's making it so _space_before
and _space_after
cannot be passed as positional arguments. This helps remove a typing error when calls to _add_ssh_entry
are made with different **kwargs (Windows vs non-Windows)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah get it thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we, should we assert that nothing is in this *
?
def ... , *_args, ...:
assert not _args
Only thinking out loud here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly! That's what using a *
without a name does
Signed-off-by: Fabrice Normandin <[email protected]>
mila init
are not supported on Windows #66hostname -s
command used to check if running on the Mila cluster isn't supported on Windows #69